package start.spring.basic.flowable.entity;

import java.io.Serializable;
import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import start.spring.basic.ry.annotation.Excel;


/**
 * 请假对象 biz_leave
 * 
 * @author xuyy
 * @date 2023-09-02
 */
@Data
@TableName("biz_leave")
@ApiModel(value="biz_leave表映射对象", description="")
public class BizLeave implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "请假人id")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "请假人名称")
    @TableField("user_name")
    @Excel(name = "请假人名称")
    private String userName;

    @ApiModelProperty(value = "请假开始时间")
    @TableField("kssj")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "请假开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date kssj;

    @ApiModelProperty(value = "请假结束时间")
    @TableField("jssj")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "请假结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date jssj;

    @ApiModelProperty(value = "请假事由")
    @TableField("qjsy")
    @Excel(name = "请假事由")
    private String qjsy;

    @ApiModelProperty(value = "请假时间")
    @TableField("qjsj")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "请假时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date qjsj;

    @ApiModelProperty(value = "请假时间起")
    @TableField(exist=false)
    private String beginQjsj;
    
    @ApiModelProperty(value = "请假时间止")
    @TableField(exist=false)
    private String endQjsj;

    @ApiModelProperty(value = "流程定义id")
    @TableField("definition_id")
    private String definitionId;
    
    @ApiModelProperty(value = "部署id")
    @TableField("deploy_id")
    private String deployId;
	
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("kssj", getKssj())
            .append("jssj", getJssj())
            .append("qjsy", getQjsy())
            .append("qjsj", getQjsj())
            .append("definitionId", getDefinitionId())
            .append("deployId", getDeployId())
            .toString();
    }
}
